/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package east2west.service;

import east2west.dao.CarCancelDAO;
import east2west.dto.CarCancelDTO;
import java.util.ArrayList;

/**
 *
 * @author anhtuan
 */
public class CarCancelService {

    CarCancelDAO dao = new CarCancelDAO();

    public ArrayList<CarCancelDTO> readByAll() {
        return dao.readByAll();
    }

    public CarCancelDTO findByCarOrderDetailid(int id) {
        return dao.findByCarOrderDetailid(id);
    }

    public boolean create(CarCancelDTO dto) {
        return dao.create(dto);
    }
}
